<?PHP

ini_set('session.gc_maxlifetime', 60);

if(!isset($_SESSION))
    session_start();
if (!isset($_SESSION['created']))
{
  session_regenerate_id();
  $_SESSION['created'] = TRUE;
}
if (!isset($_SESSION['isLogin'])) {
    $_SESSION['isLogin'] = 0;
}
if (!isset($_SESSION['iduser'])) {
    $_SESSION['iduser'] = "";
}
if (!isset($_SESSION['username'])) {
    $_SESSION['username'] = "";
}
if (!isset($_SESSION['fullname'])) {
    $_SESSION['fullname'] = "";
}
if (!isset($_SESSION['email'])) {
    $_SESSION['email'] = "";
}
if(!isset($_COOKIE['remember']))
    $_COOKIE['remember'] = 0;
?>
